package com.nmf.dao.gen;

import com.nmf.dao.gen.bean.BizProjectBill;
import com.nmf.dao.gen.bean.BizProjectBillExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface BizProjectBillMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_project_bill
     */
    @SelectProvider(type=BizProjectBillSqlProvider.class, method="countByExample")
    long countByExample(BizProjectBillExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_project_bill
     */
    @DeleteProvider(type=BizProjectBillSqlProvider.class, method="deleteByExample")
    int deleteByExample(BizProjectBillExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_project_bill
     */
    @Delete({
        "delete from biz_project_bill",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_project_bill
     */
    @Insert({
        "insert into biz_project_bill (id, pro_name, ",
        "pro_type, province_id, ",
        "province_name, bill_status, ",
        "bill_status_name, bill_type, ",
        "category_id, category_name, ",
        "sub_category_id, sub_category_name, ",
        "submit_user_id, submit_user_name, ",
        "province_audit_uid, province_audit_name, ",
        "country_audit_uid, country_audit_name, ",
        "explain_content, pro_start_time, ",
        "pro_end_time, responser_id, ",
        "responser_name, responser_tel_no, ",
        "center_responser_id, center_tel_no, ",
        "center_responser_name, link_tel_no, ",
        "link_mobile, fax_code, ",
        "center_site_url, apply_company, ",
        "apply_date, apply_file_no, ",
        "user_id, user_name, ",
        "period_id, create_date, ",
        "update_date)",
        "values (#{id,jdbcType=VARCHAR}, #{proName,jdbcType=VARCHAR}, ",
        "#{proType,jdbcType=VARCHAR}, #{provinceId,jdbcType=VARCHAR}, ",
        "#{provinceName,jdbcType=VARCHAR}, #{billStatus,jdbcType=SMALLINT}, ",
        "#{billStatusName,jdbcType=VARCHAR}, #{billType,jdbcType=SMALLINT}, ",
        "#{categoryId,jdbcType=VARCHAR}, #{categoryName,jdbcType=VARCHAR}, ",
        "#{subCategoryId,jdbcType=VARCHAR}, #{subCategoryName,jdbcType=VARCHAR}, ",
        "#{submitUserId,jdbcType=VARCHAR}, #{submitUserName,jdbcType=VARCHAR}, ",
        "#{provinceAuditUid,jdbcType=VARCHAR}, #{provinceAuditName,jdbcType=VARCHAR}, ",
        "#{countryAuditUid,jdbcType=VARCHAR}, #{countryAuditName,jdbcType=VARCHAR}, ",
        "#{explainContent,jdbcType=LONGVARCHAR}, #{proStartTime,jdbcType=TIMESTAMP}, ",
        "#{proEndTime,jdbcType=TIMESTAMP}, #{responserId,jdbcType=VARCHAR}, ",
        "#{responserName,jdbcType=VARCHAR}, #{responserTelNo,jdbcType=VARCHAR}, ",
        "#{centerResponserId,jdbcType=VARCHAR}, #{centerTelNo,jdbcType=VARCHAR}, ",
        "#{centerResponserName,jdbcType=VARCHAR}, #{linkTelNo,jdbcType=VARCHAR}, ",
        "#{linkMobile,jdbcType=VARCHAR}, #{faxCode,jdbcType=VARCHAR}, ",
        "#{centerSiteUrl,jdbcType=VARCHAR}, #{applyCompany,jdbcType=VARCHAR}, ",
        "#{applyDate,jdbcType=TIMESTAMP}, #{applyFileNo,jdbcType=VARCHAR}, ",
        "#{userId,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, ",
        "#{periodId,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, ",
        "#{updateDate,jdbcType=TIMESTAMP})"
    })
    int insert(BizProjectBill record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_project_bill
     */
    @InsertProvider(type=BizProjectBillSqlProvider.class, method="insertSelective")
    int insertSelective(BizProjectBill record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_project_bill
     */
    @SelectProvider(type=BizProjectBillSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="pro_name", property="proName", jdbcType=JdbcType.VARCHAR),
        @Result(column="pro_type", property="proType", jdbcType=JdbcType.VARCHAR),
        @Result(column="province_id", property="provinceId", jdbcType=JdbcType.VARCHAR),
        @Result(column="province_name", property="provinceName", jdbcType=JdbcType.VARCHAR),
        @Result(column="bill_status", property="billStatus", jdbcType=JdbcType.SMALLINT),
        @Result(column="bill_status_name", property="billStatusName", jdbcType=JdbcType.VARCHAR),
        @Result(column="bill_type", property="billType", jdbcType=JdbcType.SMALLINT),
        @Result(column="category_id", property="categoryId", jdbcType=JdbcType.VARCHAR),
        @Result(column="category_name", property="categoryName", jdbcType=JdbcType.VARCHAR),
        @Result(column="sub_category_id", property="subCategoryId", jdbcType=JdbcType.VARCHAR),
        @Result(column="sub_category_name", property="subCategoryName", jdbcType=JdbcType.VARCHAR),
        @Result(column="submit_user_id", property="submitUserId", jdbcType=JdbcType.VARCHAR),
        @Result(column="submit_user_name", property="submitUserName", jdbcType=JdbcType.VARCHAR),
        @Result(column="province_audit_uid", property="provinceAuditUid", jdbcType=JdbcType.VARCHAR),
        @Result(column="province_audit_name", property="provinceAuditName", jdbcType=JdbcType.VARCHAR),
        @Result(column="country_audit_uid", property="countryAuditUid", jdbcType=JdbcType.VARCHAR),
        @Result(column="country_audit_name", property="countryAuditName", jdbcType=JdbcType.VARCHAR),
        @Result(column="explain_content", property="explainContent", jdbcType=JdbcType.LONGVARCHAR),
        @Result(column="pro_start_time", property="proStartTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="pro_end_time", property="proEndTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="responser_id", property="responserId", jdbcType=JdbcType.VARCHAR),
        @Result(column="responser_name", property="responserName", jdbcType=JdbcType.VARCHAR),
        @Result(column="responser_tel_no", property="responserTelNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="center_responser_id", property="centerResponserId", jdbcType=JdbcType.VARCHAR),
        @Result(column="center_tel_no", property="centerTelNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="center_responser_name", property="centerResponserName", jdbcType=JdbcType.VARCHAR),
        @Result(column="link_tel_no", property="linkTelNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="link_mobile", property="linkMobile", jdbcType=JdbcType.VARCHAR),
        @Result(column="fax_code", property="faxCode", jdbcType=JdbcType.VARCHAR),
        @Result(column="center_site_url", property="centerSiteUrl", jdbcType=JdbcType.VARCHAR),
        @Result(column="apply_company", property="applyCompany", jdbcType=JdbcType.VARCHAR),
        @Result(column="apply_date", property="applyDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="apply_file_no", property="applyFileNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_id", property="userId", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR),
        @Result(column="period_id", property="periodId", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP)
    })
    List<BizProjectBill> selectByExample(BizProjectBillExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_project_bill
     */
    @Select({
        "select",
        "id, pro_name, pro_type, province_id, province_name, bill_status, bill_status_name, ",
        "bill_type, category_id, category_name, sub_category_id, sub_category_name, submit_user_id, ",
        "submit_user_name, province_audit_uid, province_audit_name, country_audit_uid, ",
        "country_audit_name, explain_content, pro_start_time, pro_end_time, responser_id, ",
        "responser_name, responser_tel_no, center_responser_id, center_tel_no, center_responser_name, ",
        "link_tel_no, link_mobile, fax_code, center_site_url, apply_company, apply_date, ",
        "apply_file_no, user_id, user_name, period_id, create_date, update_date",
        "from biz_project_bill",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="pro_name", property="proName", jdbcType=JdbcType.VARCHAR),
        @Result(column="pro_type", property="proType", jdbcType=JdbcType.VARCHAR),
        @Result(column="province_id", property="provinceId", jdbcType=JdbcType.VARCHAR),
        @Result(column="province_name", property="provinceName", jdbcType=JdbcType.VARCHAR),
        @Result(column="bill_status", property="billStatus", jdbcType=JdbcType.SMALLINT),
        @Result(column="bill_status_name", property="billStatusName", jdbcType=JdbcType.VARCHAR),
        @Result(column="bill_type", property="billType", jdbcType=JdbcType.SMALLINT),
        @Result(column="category_id", property="categoryId", jdbcType=JdbcType.VARCHAR),
        @Result(column="category_name", property="categoryName", jdbcType=JdbcType.VARCHAR),
        @Result(column="sub_category_id", property="subCategoryId", jdbcType=JdbcType.VARCHAR),
        @Result(column="sub_category_name", property="subCategoryName", jdbcType=JdbcType.VARCHAR),
        @Result(column="submit_user_id", property="submitUserId", jdbcType=JdbcType.VARCHAR),
        @Result(column="submit_user_name", property="submitUserName", jdbcType=JdbcType.VARCHAR),
        @Result(column="province_audit_uid", property="provinceAuditUid", jdbcType=JdbcType.VARCHAR),
        @Result(column="province_audit_name", property="provinceAuditName", jdbcType=JdbcType.VARCHAR),
        @Result(column="country_audit_uid", property="countryAuditUid", jdbcType=JdbcType.VARCHAR),
        @Result(column="country_audit_name", property="countryAuditName", jdbcType=JdbcType.VARCHAR),
        @Result(column="explain_content", property="explainContent", jdbcType=JdbcType.LONGVARCHAR),
        @Result(column="pro_start_time", property="proStartTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="pro_end_time", property="proEndTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="responser_id", property="responserId", jdbcType=JdbcType.VARCHAR),
        @Result(column="responser_name", property="responserName", jdbcType=JdbcType.VARCHAR),
        @Result(column="responser_tel_no", property="responserTelNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="center_responser_id", property="centerResponserId", jdbcType=JdbcType.VARCHAR),
        @Result(column="center_tel_no", property="centerTelNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="center_responser_name", property="centerResponserName", jdbcType=JdbcType.VARCHAR),
        @Result(column="link_tel_no", property="linkTelNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="link_mobile", property="linkMobile", jdbcType=JdbcType.VARCHAR),
        @Result(column="fax_code", property="faxCode", jdbcType=JdbcType.VARCHAR),
        @Result(column="center_site_url", property="centerSiteUrl", jdbcType=JdbcType.VARCHAR),
        @Result(column="apply_company", property="applyCompany", jdbcType=JdbcType.VARCHAR),
        @Result(column="apply_date", property="applyDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="apply_file_no", property="applyFileNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_id", property="userId", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR),
        @Result(column="period_id", property="periodId", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP)
    })
    BizProjectBill selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_project_bill
     */
    @UpdateProvider(type=BizProjectBillSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") BizProjectBill record, @Param("example") BizProjectBillExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_project_bill
     */
    @UpdateProvider(type=BizProjectBillSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") BizProjectBill record, @Param("example") BizProjectBillExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_project_bill
     */
    @UpdateProvider(type=BizProjectBillSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(BizProjectBill record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_project_bill
     */
    @Update({
        "update biz_project_bill",
        "set pro_name = #{proName,jdbcType=VARCHAR},",
          "pro_type = #{proType,jdbcType=VARCHAR},",
          "province_id = #{provinceId,jdbcType=VARCHAR},",
          "province_name = #{provinceName,jdbcType=VARCHAR},",
          "bill_status = #{billStatus,jdbcType=SMALLINT},",
          "bill_status_name = #{billStatusName,jdbcType=VARCHAR},",
          "bill_type = #{billType,jdbcType=SMALLINT},",
          "category_id = #{categoryId,jdbcType=VARCHAR},",
          "category_name = #{categoryName,jdbcType=VARCHAR},",
          "sub_category_id = #{subCategoryId,jdbcType=VARCHAR},",
          "sub_category_name = #{subCategoryName,jdbcType=VARCHAR},",
          "submit_user_id = #{submitUserId,jdbcType=VARCHAR},",
          "submit_user_name = #{submitUserName,jdbcType=VARCHAR},",
          "province_audit_uid = #{provinceAuditUid,jdbcType=VARCHAR},",
          "province_audit_name = #{provinceAuditName,jdbcType=VARCHAR},",
          "country_audit_uid = #{countryAuditUid,jdbcType=VARCHAR},",
          "country_audit_name = #{countryAuditName,jdbcType=VARCHAR},",
          "explain_content = #{explainContent,jdbcType=LONGVARCHAR},",
          "pro_start_time = #{proStartTime,jdbcType=TIMESTAMP},",
          "pro_end_time = #{proEndTime,jdbcType=TIMESTAMP},",
          "responser_id = #{responserId,jdbcType=VARCHAR},",
          "responser_name = #{responserName,jdbcType=VARCHAR},",
          "responser_tel_no = #{responserTelNo,jdbcType=VARCHAR},",
          "center_responser_id = #{centerResponserId,jdbcType=VARCHAR},",
          "center_tel_no = #{centerTelNo,jdbcType=VARCHAR},",
          "center_responser_name = #{centerResponserName,jdbcType=VARCHAR},",
          "link_tel_no = #{linkTelNo,jdbcType=VARCHAR},",
          "link_mobile = #{linkMobile,jdbcType=VARCHAR},",
          "fax_code = #{faxCode,jdbcType=VARCHAR},",
          "center_site_url = #{centerSiteUrl,jdbcType=VARCHAR},",
          "apply_company = #{applyCompany,jdbcType=VARCHAR},",
          "apply_date = #{applyDate,jdbcType=TIMESTAMP},",
          "apply_file_no = #{applyFileNo,jdbcType=VARCHAR},",
          "user_id = #{userId,jdbcType=VARCHAR},",
          "user_name = #{userName,jdbcType=VARCHAR},",
          "period_id = #{periodId,jdbcType=VARCHAR},",
          "create_date = #{createDate,jdbcType=TIMESTAMP},",
          "update_date = #{updateDate,jdbcType=TIMESTAMP}",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(BizProjectBill record);
}